<?php
include 'ShopProduct.php';
/**
 * Description of BookProduct
 *
 * @author chalkers
 */
class BookProduct extends ShopProduct {
    private $numPages;
    
    public function __construct($title,$firstName,$mainName,$price,$numPages) {
        parent::__construct($title,$firstName,$mainName,$price);
        $this->numPages = $numPages;
    }
    
    public function getNumberOfPages(){
        return $this->numPages;
    }
    
    public function getSummaryLine(){
        $base = parent::getSummaryLine();
        $base .= ": page count - $this->numPages";
        return $base;
    }
    
    public function getPrice() {
        return $this->price;
    }
    
}

?>
